LEADTOOLS WebForms and AJAX (Leadtools.Web.Services assembly)
LEAD Technologies, Inc

ProcessStream Method






The number of the current concurrent stream to process.
User state information.
Determines whether the ServiceStreamer<TStreamedData,TServiceState> should continue streaming by calling the OnCallService method.
Syntax
protected abstract bool ProcessStream( 
   int currentStreamNumber,
   TServiceState state
)
'Declaration
 
Protected MustOverride Function ProcessStream( _
   ByVal currentStreamNumber As Integer, _
   ByVal state As TServiceState _
) As Boolean
'Usage
 
Dim instance As ServiceStreamer(Of TStreamedData,TServiceState)
Dim currentStreamNumber As Integer
Dim state As TServiceState
Dim value As Boolean
 
value = instance.ProcessStream(currentStreamNumber, state)
protected abstract bool ProcessStream( 
   int currentStreamNumber,
   TServiceState state
)
 function Leadtools.Web.Services.ServiceStreamer.ProcessStream( 
   currentStreamNumber ,
   state 
)
protected:
abstract bool ProcessStream( 
   int currentStreamNumber,
   TServiceState^ state
) 

Parameters

currentStreamNumber
The number of the current concurrent stream to process.
state
User state information.

Return Value

true to continue streaming; otherwise false.
Remarks

This function will be called before calling the OnCallService method.

When you receive all the data from the web service and you don't need to perform further streaming, return false from this method. For example, if you set the StreamsLimit to 4 and you have received all data in the 3rd call, then return false when the currentStreamNumber is 4.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ServiceStreamer<TStreamedData,TServiceState> Class
ServiceStreamer<TStreamedData,TServiceState> Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.